home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / cbm / 4658 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: RRZ.Uni-Koeln.DE!a2233495
  2. From: a2233495@rrz.Uni-Koeln.DE (Joerg Bleimann)
  3. Newsgroups: comp.sys.cbm
  4. Subject: Scanning strings under BASIC, avoiding INPUT "?"
  5. Date: 27 Mar 1996 20:49:33 GMT
  6. Organization: Regional Computing Center, University of Cologne
  7. Message-ID: <4jc9kt$h3p@news.rrz.uni-koeln.de>
  8. Reply-To: a2233495@athena.rrz.uni-koeln.de
  9. NNTP-Posting-Host: hpw1.rrz.uni-koeln.de
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Hi Freaks!
  13.  
  14. I have got a problem with COMMODORE BASIC 2.0: I started programming a text
  15. adventure on the C 64 and do not know how to make the computer recognize the
  16. latter part of a bipartite command string (for example "TAKE BOTTLE"). How
  17. can I search the whole string for empties (" ") to redefine the part right
  18. from the empty as a new string? ASC only recognizes the first character of a
  19. string, VAL takes only number characters into account... and machine language
  20. is all Greek to me!
  21. Yet another question: in more modern BASIC dialects, one can avoid the ? after
  22. INPUT by typing a comma before the variable; in CBM BASIC 2.0 this would pro-
  23. duce a SYNTAX ERROR. Are there any ways to get rid of the question mark using
  24. BASIC on the C 64?
  25.  
  26.                           See you in Khyberspace!
  27.  
  28.                           Joerg "Yadgar Achakzai" Bleimann
  29.  
  30.                           The Virtual Afghan
  31.  
  32.  
  33.